﻿<!DOCTYPE html>
<html lang="zh-CN">
{% load staticfiles %}
<head>
    <meta charset="UTF-8">
    <title>登 陆</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!--响应式框架-->
    <link rel='stylesheet' href='{% static 'common/css/bootstrap.min.css' %}'>
    {#    <link rel='stylesheet' href='../../static/common/css/bootstrap.min.css' >#}

    <!--主要样式-->
    <link rel='stylesheet' href='{% static 'stock/css/login.css' %}'>
    {#    <link rel="stylesheet" href="../../static/stock/css/login.css">#}

</head>
<body>

<div class="container">
    <div class="card--login ">
        <div class="card-body">
            <h2 class="card-title">欢迎登录！</h2>
            <p>请输入用户名、密码</p>


            <form action="./" method="post">
                {% csrf_token %}
            <div class="form-group">
                <input class="form-control" type="text" placeholder="用户名" required="required" name="username"
                       id="login_username">
            </div>
            <div class="form-group">
                <input class="form-control" type="password" placeholder="密码" required="required" name="password"
                       id="login_password">
            </div>

            <button class="btn btn-lg btn-default" type="submit">登陆</button>
            </form>

        </div>

    </div>
</div>
<script src="{% static 'common/js/jquery.js' %}"></script>
<script src="{% static 'stock/js/login.js' %}"></script>
<script src="{% static 'common/cryptoJS/core.js' %}"></script>
<script src="{% static 'common/cryptoJS/sha256.js' %}"></script>
<script src="{% static 'common/cryptoJS/aes.js' %}"></script>
{#<script src="../../static/stock/js/login.js"></script>#}
<!-- csrf token  -->
<script>
    $.ajaxSetup({
        data: {csrfmiddlewaretoken: '{{ csrf_token }}'},
    });
</script>
</body>
</html>